package com.feng.zshop.backend.service.impl;

import com.feng.zshop.backend.dao.RoleDao;
import com.feng.zshop.backend.service.RoleService;
import com.feng.zshop.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lee
 * @date 2019/2/23
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleDao roleDao;

    @Override
    public List<Role> findAllRole() {
        return roleDao.listRole();
    }

}
